package routers

import (
	"CRMSystem/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	// 服务表
	beego.Router("/service/list", &controllers.ServiceController{}, "get:GetServiceInfoList")

	// 客户下服务表
	beego.Router("/customerService", &controllers.ServiceController{}, "get:GetCustomerServiceInfoList")

	// 提交服务
	beego.Router("/serviceSubmit", &controllers.ServiceController{}, "post:AddService")

	// 展示服务
	beego.Router("/viewService", &controllers.ServiceController{}, "get:ViewService")

	// 服务详情
	beego.Router("/serviceInfo", &controllers.ServiceController{}, "get:GetServiceInfo")

}
